/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2cf35cui;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Output Field Implementation</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2cf35cui.Adaptedaui2cf35cuiPackage#getOutputFieldImplementation()
 * @model
 * @generated
 */
public enum OutputFieldImplementation implements Enumerator {
	/**
	 * The '<em><b>Label</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LABEL_VALUE
	 * @generated
	 * @ordered
	 */
	LABEL(0, "Label", "Label"),

	/**
	 * The '<em><b>Link Label</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LINK_LABEL_VALUE
	 * @generated
	 * @ordered
	 */
	LINK_LABEL(1, "LinkLabel", "LinkLabel"),

	/**
	 * The '<em><b>List Box</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LIST_BOX_VALUE
	 * @generated
	 * @ordered
	 */
	LIST_BOX(2, "ListBox", "ListBox"),

	/**
	 * The '<em><b>List View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LIST_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	LIST_VIEW(3, "ListView", "ListView"),

	/**
	 * The '<em><b>Picture Box</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PICTURE_BOX_VALUE
	 * @generated
	 * @ordered
	 */
	PICTURE_BOX(4, "PictureBox", "PictureBox"),

	/**
	 * The '<em><b>Progress Bar</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PROGRESS_BAR_VALUE
	 * @generated
	 * @ordered
	 */
	PROGRESS_BAR(5, "ProgressBar", "ProgressBar"),

	/**
	 * The '<em><b>Status Bar</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #STATUS_BAR_VALUE
	 * @generated
	 * @ordered
	 */
	STATUS_BAR(6, "StatusBar", "StatusBar"),

	/**
	 * The '<em><b>Tree View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TREE_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	TREE_VIEW(7, "TreeView", "TreeView"),

	/**
	 * The '<em><b>Data Grid View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DATA_GRID_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	DATA_GRID_VIEW(8, "DataGridView", "DataGridView");

	/**
	 * The '<em><b>Label</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Label</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LABEL
	 * @model name="Label"
	 * @generated
	 * @ordered
	 */
	public static final int LABEL_VALUE = 0;

	/**
	 * The '<em><b>Link Label</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Link Label</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LINK_LABEL
	 * @model name="LinkLabel"
	 * @generated
	 * @ordered
	 */
	public static final int LINK_LABEL_VALUE = 1;

	/**
	 * The '<em><b>List Box</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>List Box</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LIST_BOX
	 * @model name="ListBox"
	 * @generated
	 * @ordered
	 */
	public static final int LIST_BOX_VALUE = 2;

	/**
	 * The '<em><b>List View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>List View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LIST_VIEW
	 * @model name="ListView"
	 * @generated
	 * @ordered
	 */
	public static final int LIST_VIEW_VALUE = 3;

	/**
	 * The '<em><b>Picture Box</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Picture Box</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PICTURE_BOX
	 * @model name="PictureBox"
	 * @generated
	 * @ordered
	 */
	public static final int PICTURE_BOX_VALUE = 4;

	/**
	 * The '<em><b>Progress Bar</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Progress Bar</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PROGRESS_BAR
	 * @model name="ProgressBar"
	 * @generated
	 * @ordered
	 */
	public static final int PROGRESS_BAR_VALUE = 5;

	/**
	 * The '<em><b>Status Bar</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Status Bar</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #STATUS_BAR
	 * @model name="StatusBar"
	 * @generated
	 * @ordered
	 */
	public static final int STATUS_BAR_VALUE = 6;

	/**
	 * The '<em><b>Tree View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Tree View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TREE_VIEW
	 * @model name="TreeView"
	 * @generated
	 * @ordered
	 */
	public static final int TREE_VIEW_VALUE = 7;

	/**
	 * The '<em><b>Data Grid View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Data Grid View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DATA_GRID_VIEW
	 * @model name="DataGridView"
	 * @generated
	 * @ordered
	 */
	public static final int DATA_GRID_VIEW_VALUE = 8;

	/**
	 * An array of all the '<em><b>Output Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OutputFieldImplementation[] VALUES_ARRAY =
		new OutputFieldImplementation[] {
			LABEL,
			LINK_LABEL,
			LIST_BOX,
			LIST_VIEW,
			PICTURE_BOX,
			PROGRESS_BAR,
			STATUS_BAR,
			TREE_VIEW,
			DATA_GRID_VIEW,
		};

	/**
	 * A public read-only list of all the '<em><b>Output Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OutputFieldImplementation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OutputFieldImplementation result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OutputFieldImplementation result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation get(int value) {
		switch (value) {
			case LABEL_VALUE: return LABEL;
			case LINK_LABEL_VALUE: return LINK_LABEL;
			case LIST_BOX_VALUE: return LIST_BOX;
			case LIST_VIEW_VALUE: return LIST_VIEW;
			case PICTURE_BOX_VALUE: return PICTURE_BOX;
			case PROGRESS_BAR_VALUE: return PROGRESS_BAR;
			case STATUS_BAR_VALUE: return STATUS_BAR;
			case TREE_VIEW_VALUE: return TREE_VIEW;
			case DATA_GRID_VIEW_VALUE: return DATA_GRID_VIEW;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OutputFieldImplementation(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OutputFieldImplementation
